package com.itany.shop.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 石小俊
 * @date 2023年06月05日 10:51
 */
public class Order implements Serializable {

    private Integer id;
    private String no;
    private Double price;
    private User user;
    private List<Item> items = new ArrayList<>();

    public List<Item> getItems() {
        return items;
    }

    public void setItems(List<Item> items) {
        this.items = items;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
